{% extends './layout/default' %}

{% block breadcrumbs %}
    {{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
{% endblock %}

{% block content %}
    {% if total == 0 %}
        {% include 'partials.empty' with {objectType: 'default', type: 'bills',route: route('subscriptions.create')} %}
    {% else %}
        <div class="row">
            <div class="col-lg-12 col-sm-12 col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">{{ title }}</h3>
                        <div class="box-tools pull-right">
                            <div class="btn-group">
                                <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><span class="fa fa-ellipsis-v"></span></button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="{{ route('subscriptions.create') }}"><span class="fa fa-plus fa-fw"></span> {{ 'new_bill'|_ }}</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="box-body no-padding">
                        <div style="padding:8px;">
                            <a class="btn btn-success" href="{{ route('subscriptions.create') }}"><span class="fa fa-plus fa-fw"></span> {{ 'create_new_bill'|_ }}</a>
                        </div>
                        {% include 'list/bills' %}
                    </div>
                    <div class="box-footer">
                        <a class="btn btn-success" href="{{ route('subscriptions.create') }}"><span class="fa fa-plus fa-fw"></span> {{ 'create_new_bill'|_ }}</a>
                    </div>
                </div>
            </div>
        </div>
    {% endif %}
{% endblock %}

{% block styles %}
{% endblock %}

{% block scripts %}
    <script src="v1/js/lib/jquery-ui.min.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
    <script type="text/javascript" src="v1/js/ff/bills/index.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
{% endblock %}
